package com.teamcenter.rac.massupdate.ui.grid;

import com.teamcenter.rac.kernel.TCComponent;
import com.teamcenter.rac.massupdate.model.MarkupChangeModel;
import com.teamcenter.rac.util.AdapterUtil;
import org.eclipse.ui.views.properties.IPropertySource;

public class MarkupChangeModelCellImagePainter
  extends AbstractMassUpdateCellImagePainter
{
  public MarkupChangeModelCellImagePainter(String paramString1, String paramString2)
  {
    super(null, paramString1, paramString2);
  }
  
  public MarkupChangeModelCellImagePainter(String paramString1, String paramString2, String paramString3)
  {
    super(paramString1, paramString2, paramString3);
  }
  
  protected TCComponent getTCComponentFromRowObject(Object paramObject)
  {
    if ((paramObject instanceof MarkupChangeModel))
    {
      MarkupChangeModel localMarkupChangeModel = (MarkupChangeModel)paramObject;
      IPropertySource localIPropertySource = localMarkupChangeModel.getMarkupChange();
      return (TCComponent)AdapterUtil.getAdapter(localIPropertySource, TCComponent.class);
    }
    return null;
  }
}

